Add GTK_INPUT_HINT_PRIVATE
authorMatthias Clasen <mclasen@redhat.com>
Thu, 1 Oct 2020 21:14:58 +0000 (17:14 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 1 Oct 2020 21:14:58 +0000 (17:14 -0400)
Add a flag that requests that input methods should not
update personalized data (such as typing history).

Fixes: #2261
gtk/gtkenums.h

index be5bd75a9eefc890e6085e862b33900719631055..d1ca41cb1aa3dafa12c2bbe9e2a1c8882a9a267f 100644 (file)
@@ -866,6 +866,8 @@ typedef enum
  * @GTK_INPUT_HINT_VERTICAL_WRITING: The text is vertical
  * @GTK_INPUT_HINT_EMOJI: Suggest offering Emoji support
  * @GTK_INPUT_HINT_NO_EMOJI: Suggest not offering Emoji support
+ * @GTK_INPUT_HINT_PRIVATE: Request that the input method should not
+ *    update personalized data (like typing history)
  *
  * Describes hints that might be taken into account by input methods
  * or applications. Note that input methods may already tailor their
@@ -890,7 +892,8 @@ typedef enum
   GTK_INPUT_HINT_INHIBIT_OSK         = 1 << 7,
   GTK_INPUT_HINT_VERTICAL_WRITING    = 1 << 8,
   GTK_INPUT_HINT_EMOJI               = 1 << 9,
-  GTK_INPUT_HINT_NO_EMOJI            = 1 << 10
+  GTK_INPUT_HINT_NO_EMOJI            = 1 << 10,
+  GTK_INPUT_HINT_PRIVATE             = 1 << 11,
 } GtkInputHints;
 
 /**